#ifndef _H_STM32_HAL_DEFINES_H_
#define _H_STM32_HAL_DEFINES_H_

/* Main Includes */
#include "main.h"

#include <stdlib.h>

#define _STM32HAL_GPIO_Port(x)                    GPIO##x
#define STM32HAL_GPIO_Port(x)                     _STM32HAL_GPIO_Port(x)

#define _STM32HAL_GPIO_Pin(x)                     GPIO_PIN_##x
#define STM32HAL_GPIO_Pin(x)                      _STM32HAL_GPIO_Pin(x)


#define H_STM32_HAL_GPIO_H(x,y)                   (STM32HAL_GPIO_Port(x))->BSRR = STM32HAL_GPIO_Pin(y)
#define H_STM32_HAL_GPIO_L(x,y)                   (STM32HAL_GPIO_Port(x))->BRR = STM32HAL_GPIO_Pin(y)


#define H_STM32_MALLOC                            malloc
#define H_STM32_FREE                              free

#define FREERTOS_ENABLE                           1

#define AUTO_RUN                                  0

#define BLE_SLAVE_BOARD_ENABLE                    0

#endif
